//
//  AnswerCell.m
//  Hxcsfw
//
//  Created by qiysoft on 2017/10/26.
//  Copyright © 2017年 企友软mac. All rights reserved.
//

#import "AnswerCell.h"

@implementation AnswerCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _line1.hidden = NO;
    _line2.hidden = YES;
    _line3.hidden = YES;
    _line4.hidden = YES;
    _line5.hidden = YES;
    _WBTJBtn.titleLabel.lineBreakMode =  NSLineBreakByTruncatingTail;//省略号在后面
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)SSBtn:(id)sender {
    [_delegate SS:sender];
}

- (IBAction)ZXKFBtn:(id)sender {
    [_delegate ZXKF:sender];
}

- (IBAction)CSZXBtn:(id)sender {
    [_delegate CSZX:sender];
}

- (IBAction)FLJSBtn:(id)sender {
    [_delegate FLJS:sender];
}

- (IBAction)WDWTBtn:(id)sender {
    [_delegate WDWT:sender];
}



- (IBAction)SBBtn:(id)sender {
    //_SBBtn _KPBtn _RZBtn _CSBtn _BSBtn

    _line1.hidden = NO;
    _line2.hidden = YES;
    _line3.hidden = YES;
    _line4.hidden = YES;
    _line5.hidden = YES;
    [_SBBtn setTitleColor:[UIColor colorWithRed:0.97 green:0.38 blue:0.28 alpha:1] forState:UIControlStateNormal];
    [_KPBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    [_RZBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    [_CSBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    [_BSBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];

    [_delegate SB:sender];
}

- (IBAction)KPBtn:(id)sender {
    
    _line1.hidden = YES;
    _line2.hidden = NO;
    _line3.hidden = YES;
    _line4.hidden = YES;
    _line5.hidden = YES;
    [_SBBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    [_KPBtn setTitleColor:[UIColor colorWithRed:0.97 green:0.38 blue:0.28 alpha:1] forState:UIControlStateNormal];
    [_RZBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    [_CSBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    [_BSBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    
    [_delegate KP:sender];
}

- (IBAction)RZBtn:(id)sender {
    
    _line1.hidden = YES;
    _line2.hidden = YES;
    _line3.hidden = NO;
    _line4.hidden = YES;
    _line5.hidden = YES;
    [_SBBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    [_KPBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    [_RZBtn setTitleColor:[UIColor colorWithRed:0.97 green:0.38 blue:0.28 alpha:1] forState:UIControlStateNormal];
    [_CSBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    [_BSBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    
    [_delegate RZ:sender];
}

- (IBAction)CSBtn:(id)sender {
    
    _line1.hidden = YES;
    _line2.hidden = YES;
    _line3.hidden = YES;
    _line4.hidden = NO;
    _line5.hidden = YES;
    [_SBBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    [_KPBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    [_RZBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    [_CSBtn setTitleColor:[UIColor colorWithRed:0.97 green:0.38 blue:0.28 alpha:1] forState:UIControlStateNormal];
    [_BSBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    
    [_delegate CS:sender];
}

- (IBAction)BSBtn:(id)sender {
    
    _line1.hidden = YES;
    _line2.hidden = YES;
    _line3.hidden = YES;
    _line4.hidden = YES;
    _line5.hidden = NO;
    [_SBBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    [_KPBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    [_RZBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    [_CSBtn setTitleColor:[UIColor colorWithRed:0.13 green:0.13 blue:0.13 alpha:1] forState:UIControlStateNormal];
    [_BSBtn setTitleColor:[UIColor colorWithRed:0.97 green:0.38 blue:0.28 alpha:1] forState:UIControlStateNormal];
    
    [_delegate BS:sender];
}
- (IBAction)WBTJBtn:(id)sender {
    [_delegate WBTJ:sender];
}
@end
